package com.yxjx.duoxue.datamodel;

import java.util.Date;

import com.yxjx.duoxue.datamodel.course.DMCourse;

/**
 * 订单详情输出
 * 
 * @author zhangxs
 * @date 2015年1月6日
 * @deprecated use DMOrder instead.
 */
public class ProductOrderDTS {

    // 订单ID
    private String id = "";
    // 订单类型
    private Integer orderType = -1;
    // 商品id
    private Integer productId = -1;
    // 商品名称
    private String productName = "";
    // 商品数量(预留)
    private Integer productCount = -1;
    // 商品原价
    private Integer costPrice = -1;
    // 折扣价
    private Integer discountPrice = -1;
    // 是否本人（预留）
    private Integer isOwn = -1;
    // 上客人姓名（预留）
    private String toClassUsername = "";
    // 联系人姓名
    private String contactName = "";
    // 联系人电话
    private String contactPhone = "";
    // 备注（预留）
    private String remark = "";
    private Date createTime;
    private Date updateTime;

    // 订单状态
    private Integer orderStatus = -1;
    // 订单状态描述
    private String orderStatusDes = "";

    // 课程信息
    private DMCourse course;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Integer getOrderType() {
        return orderType;
    }

    public void setOrderType(Integer orderType) {
        this.orderType = orderType;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public Integer getProductCount() {
        return productCount;
    }

    public void setProductCount(Integer productCount) {
        this.productCount = productCount;
    }

    public Integer getCostPrice() {
        return costPrice;
    }

    public void setCostPrice(Integer costPrice) {
        this.costPrice = costPrice;
    }

    public Integer getDiscountPrice() {
        return discountPrice;
    }

    public void setDiscountPrice(Integer discountPrice) {
        this.discountPrice = discountPrice;
    }

    public Integer getIsOwn() {
        return isOwn;
    }

    public void setIsOwn(Integer isOwn) {
        this.isOwn = isOwn;
    }

    public String getToClassUsername() {
        return toClassUsername;
    }

    public void setToClassUsername(String toClassUsername) {
        this.toClassUsername = toClassUsername;
    }

    public String getContactName() {
        return contactName;
    }

    public void setContactName(String contactName) {
        this.contactName = contactName;
    }

    public String getContactPhone() {
        return contactPhone;
    }

    public void setContactPhone(String contactPhone) {
        this.contactPhone = contactPhone;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(Integer orderStatus) {
        this.orderStatus = orderStatus;
    }

    public DMCourse getCourse() {
        return course;
    }

    public void setCourse(DMCourse course) {
        this.course = course;
    }

    public String getOrderStatusDes() {
        return orderStatusDes;
    }

    public void setOrderStatusDes(String orderStatusDes) {
        this.orderStatusDes = orderStatusDes;
    }

    @Override
    public String toString() {
        return "{\"id\":\"" + id + "\", \"orderType\":\"" + orderType + "\", \"productId\":\"" + productId + "\", \"productName\":\"" + productName
                + "\", \"productCount\":\"" + productCount + "\", \"costPrice\":\"" + costPrice + "\", \"discountPrice\":\"" + discountPrice + "\", \"isOwn\":\"" + isOwn
                + "\", \"toClassUsername\":\"" + toClassUsername + "\", \"contactName\":\"" + contactName + "\", \"contactPhone\":\"" + contactPhone
                + "\", \"remark\":\"" + remark + "\", \"createTime\":\"" + createTime + "\", \"updateTime\":\"" + updateTime + "\", \"orderStatus\":\"" + orderStatus
                + "\", \"orderStatusDes\":\"" + orderStatusDes + "\"}";
    }

}